package com.cy.pj.sys.dao;

import com.cy.pj.sys.pojo.SysLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysLogDao {
    int getRowCount(@Param("username") String username);
    //实现当前页记录的数据查询操作
    List<SysLog> findPageObjects(
            @Param("username")String  username,
            @Param("startIndex")Integer startIndex,
            @Param("pageSize")Integer pageSize);

    //删除记录
    int deleteObjects(@Param("ids") Integer... ids);

    //添加记录
    int insertObject(SysLog sysLog);


}
